package cn.dckeji.dcssm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author Kenny
 * @since 2019-08-01
 */
@TableName("system_park")
@ApiModel(value="Park对象", description="")
public class Park extends Model<Park> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "parkId", type = IdType.UUID)
    private String parkId;

    @TableField("parkNo")
    private String parkNo;

    @TableField("parkPrice")
    private String parkPrice;

    @ApiModelProperty(value = "购买人Id")
    @TableField("userId")
    private String userId;

    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @TableField("deleteFlag")
    private Integer deleteFlag;


    public String getParkId() {
        return parkId;
    }

    public void setParkId(String parkId) {
        this.parkId = parkId;
    }

    public String getParkNo() {
        return parkNo;
    }

    public void setParkNo(String parkNo) {
        this.parkNo = parkNo;
    }

    public String getParkPrice() {
        return parkPrice;
    }

    public void setParkPrice(String parkPrice) {
        this.parkPrice = parkPrice;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.parkId;
    }

    @Override
    public String toString() {
        return "Park{" +
                "parkId='" + parkId + '\'' +
                ", parkNo='" + parkNo + '\'' +
                ", parkPrice='" + parkPrice + '\'' +
                ", userId='" + userId + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", deleteFlag=" + deleteFlag +
                '}';
    }
}
